---
root: "/v5.1"
keywords: ""
description: "Swift documentation for 'pointwiseMin'"
layout: "default"
title: "pointwiseMin"
---

<div class="intro-declaration"><code class="language-swift">func pointwiseMin(_:_:)(_ a: T, _ b: T) -> T</code></div><div class="discussion comment"><p>The lanewise minimum of two vectors.
</p>
<p>Each element of the result is the minimum of the corresponding elements
of the inputs.</p>
</div><div class="intro-declaration"><code class="language-swift">func pointwiseMin(_:_:)(_ a: T, _ b: T) -> T</code></div><div class="discussion comment"><p>The lanewise minimum of two vectors.
</p>
<p>Each element of the result is the minimum of the corresponding elements
of the inputs.</p>
</div>